package cn.joker.config;

import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Knife4jConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
            .info(new Info()
                .title("用户模块接口文档")
                .version("1.0")
                .description("microservice-user 模块的接口文档")
                .contact(new Contact()
                    .name("joker")
                    .email("you@example.com")
                    .url("https://your-domain.com")
                )
            );
    }
}
